STEP 4: Now let's set up the loop that will run our experiments!

Remember, num_experiments stores the value 25. We'll use it in range() to run the experiment 25 times!

  • In LOGIC, click on . Drag out Loop with Range.
  • Change the integer inside range() from 5 to the variable num_experiments.
  • In SUBJECT, click on . Drop Spin Fast indented inside your loop.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)